import request from "./http";

//用户信息
// https://api.ecook.cn/public/getUserPageData.shtml
export function getUserPageData(id){
    return request({
        url:`public/getUserPageData.shtml?id=${id}`,
        method:"get",
    })
}
//作者详情菜谱图文列表
// https://api.ecook.cn/pub/user/recipe/list
export function getRecipeListData(params){
    return request({
        url:"pub/user/recipe/list",
        method:"get",
        params
    })
}
//作者详情菜谱图文列表
// https://api.ecook.cn/pub/user/video/recipe/list
export function getVideoRecipeListData(params){
    return request({
        url:"pub/user/video/recipe/list",
        method:"get",
        params
    })
}
//作者详情专辑列表
// https://api.ecook.cn/pub/recipe/album/list
export function getAlbumListData(params){
    return request({
        url:"pub/recipe/album/list",
        method:"get",
        params
    })
}
//作者详情食话列表
// https://api.ecook.cn/public/getSimpleTalkList.shtml
export function getSimpleTalkListData(params){
    return request({
        url:"public/getSimpleTalkList.shtml",
        method:"post",
        params
    })
}
//作者详情关注列表
// https://api.ecook.cn/public/selectUserByFollowFansUidAndStart.shtml
export function getFollowFansListData(params){
    return request({
        url:"public/selectUserByFollowFansUidAndStart.shtml",
        method:"get",
        params
    })
}
//作者详情关注列表
// https://api.ecook.cn/public/selectUserByFollowFriendUidAndStart.shtml
export function getFollowFriendListData(params){
    return request({
        url:"public/selectUserByFollowFriendUidAndStart.shtml",
        method:"get",
        params
    })
}
//作者详情故事列表
// https://api.ecook.cn/public/getArticleListByUserid.shtml
export function getArticleListData(params){
    return request({
        url:"public/getArticleListByUserid.shtml",
        method:"get",
        params
    })
}
//食话详情
// https://api.ecook.cn/public/getTalkDetailsById.shtml
export function getTalkDetailsData(params){
    return request({
        url:"public/getTalkDetailsById.shtml",
        method:"post",
        params
    })
}
//食话详情评论列表
// https://api.ecook.cn/public/getCommentList.shtml
export function getTalkCommentListData(params){
    return request({
        url:"public/getCommentList.shtml",
        method:"post",
        params
    })
}